import 'package:flutter/material.dart';
import 'package:xbxxz_assistant/steal_map/steal_map_page.dart';

class CalculatorPage extends StatefulWidget {
  @override
  _CalculatorPageState createState() => _CalculatorPageState();
}

class _CalculatorPageState extends State<CalculatorPage>
    with AutomaticKeepAliveClientMixin {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Container(
        color: Color.fromRGBO(220, 200, 160, 1.0),
        child: Column(
          children: <Widget>[
            Expanded(
              child: DefaultTabController(
                length: 1,
                child: Column(
                  children: <Widget>[
                    Container(
                      child: TabBar(
                        unselectedLabelColor: Colors.black54,
                        labelColor: Colors.black87,
                        indicatorColor: Colors.black87,
                        tabs: <Widget>[
                          Tab(text: "偷图"),
//                        Tab(text: "洞府"),
                        ],
                      ),
                    ),
                    Expanded(
                      child: Container(
                        child: TabBarView(
                          children: <Widget>[
                            StealMapPage(),
//                          CaveHousePage(),
                          ],
                        ),
                      ),
                    ),
                  ],
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }

  @override
  bool get wantKeepAlive => true;
}
